package com.hytc.mymall.base;

import android.app.Activity;
import android.os.Bundle;

import com.hytc.mymall.application.ActivityManager;
import com.hytc.mymall.utils.BaseTools;


/**
 * Created by Joker on 2016/12/1.
 */

public class BaseActivity extends Activity
{
    public <T> T $(final int n) {
        return (T)this.findViewById(n);
    }

    protected void onCreate(final Bundle bundle) {
        super.onCreate(bundle);
        ActivityManager.getInstance().addActivity(this);
        BaseTools.setStatusBar(this);
    }

    public void setBackImgVisible() {
//        this.$(2131100408).setVisibility(0);
    }

    public void setTitleName(final int n) {
//        this.$(2131100411).setText((CharSequence)this.getResources().getString(n));
    }

    public void setTitleName(final String text) {
//        this.$(2131100411).setText((CharSequence)text);
    }
}

